<template>
  <div class="home">
    <nav>
      <!-- 写完整路径 -->
      <router-link to="/list">list</router-link>|
      <router-link :to="'/others/'+$route.params.msg">others</router-link>
    </nav>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'HomeView',
}
</script>

<style scoped>
nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
